package com.xxx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xxx.mapper.UserMapper;
import com.xxx.pojo.entity.User;
import com.xxx.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import lombok.extern.slf4j.Slf4j;

/**
 * user service实现类
 */
@Slf4j
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
	
	@Resource
	private UserMapper userMapper;
	
	@Override
	public User getUserByName(String username) {
		log.info("getUserByName|username:{}", username);
		return userMapper.getUserByName(username);
	}

	@Override
	public User getUserById(String userId) {
		log.info("getUserById|userId:{}", userId);
		return userMapper.getUserById(userId);
	}

}
